package com.dalin.platform.autocode.condition;

import com.dalin.common.pager.Condition;
/*****************************************************************************
 * @content: 列头查询类                                                                                                                           *
 * @author : 那建林                                                                                                                                 *
 * @crtDate: 2010-12-22 12:23:23                                            *
 * @modDate: 2010-12-22 12:23:23                                            *
 * @remark : 感冒了,好难受,发烧,冒虚汗,嗓子疼,头也痛, 哪都不舒服, 人生到了尽头了吗                *
 ****************************************************************************/
public class GlbGridHeaderCondition extends Condition {
    private Long projectId;
    private Long menuId;
    private String labelName; // LABEL_NAME,256,0,标签名称
    private String propertyName; // PROPERTY_NAME,256,0,属性名称
    
    
	public GlbGridHeaderCondition prepareParams() {
		setBaseQueryStr("select h from GlbGridHeaderEntity h, LoaMenuEntity menu, LoaProjectEntity pr where h.menuId=menu.menuId and menu.projectId=pr.projectId");
        setParam("h.menuId", "=", menuId);
        setParam("h.labelName", "=", labelName);
        setParam("h.propertyName", "=", propertyName);
        setParam("pr.projectId", "=", projectId);
        setOrderBy("h.headerId asc");
        return this;
    }

	
	
	
	
	public Long getMenuId() {
		return menuId;
	}

	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}

	public Long getProjectId() {
		return projectId;
	}

	public void setProjectId(Long projectId) {
		this.projectId = projectId;
	}
	public String getLabelName() {
		return labelName;
	}
	public void setLabelName(String labelName) {
		this.labelName = labelName;
	}
	public String getPropertyName() {
		return propertyName;
	}
	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}
}
